<template>
  <div class="home">
    <!-- <div @click="show">11111</div> -->
    <div class="group">
      <img src="../assets/zy2.png" alt="" />
    </div>
    <div class="groupthree">
      <img src="../assets/zy3.png" alt="" />
    </div>
    <div class="groupfour">
      <img src="../assets/zy4.png" alt="" />
    </div>
    <div class="groupfive" @click="goto(0)">
      <p>数字招采管理平台</p>
    </div>
    <div class="groupsix" @click="goto(1)">
      <p>数字集采电商平台</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeView",
  data() {
    return {};
  },
  components: {},
  methods: {
    goto(index) {
      if (index == 0) {
        this.$router.push("/homepage");
      } else {
        window.open(this.base_url+"/mall/view/portal");
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.home {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  position: relative;
  background-image: url("../assets/zy.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .group {
    position: absolute;
    top: 5%;
    left: 2%;
  }

  .group img {
    width: 13rem;
  }

  .groupthree {
    position: absolute;
    top: 5%;
    right: 0;
  }

  .groupthree img {
    width: 18rem;
  }

  .groupfour {
  }
  .groupfour img {
    width: 35rem;
  }

  .groupfive {
    width: 27.5rem;
    height: 3.35rem;
    position: absolute;
    top: 76%;
    left: 12%;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-image: url("../assets/bgzy5.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
  }

  .groupfive img {
    width: 27.5rem;
  }
  .groupfive p {
    font-size: 1.5rem;
    color: #192c55;
    letter-spacing: 0.8rem;
  }
  .groupsix {
    width: 27.5rem;
    height: 3.35rem;
    position: absolute;
    top: 76%;
    right: 12%;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-image: url("../assets/bgzy5.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
  }

  .groupsix img {
    width: 27.5rem;
  }
  .groupsix p {
    font-size: 1.5rem;
    color: #192c55;
    letter-spacing: 0.8rem;
  }
  .groupsix img {
    width: 27.5rem;
  }
  .groupsix a p {
    font-size: 1.5rem;
    color: #192c55;
    letter-spacing: 0.8rem;
  }
}
</style>
